import java.util.Scanner;

/*
    @author:sa
    @date:2024/11/13 14:18
*/
public class MethodTest {
    public static void main(String[] args) {
        String[][] stu1 = new String[10][3];
        int i = 0;
        stu("张三", "20", "男", stu1, i);
        i++;
        stu("李四", "30", "男", stu1, i);
        i++;
        stu("王五", "40", "男", stu1, i);
    }

    public static String stu(String name, String age, String sex, String a[][], int i) {
        String[] stu2 = new String[3];
        stu2[0] = name;
        stu2[1] = age;
        stu2[2] = sex;
        a[i] = stu2;
        System.out.println("name:" + a[i][0]);
        System.out.println("age:" + a[i][1]);
        System.out.println("sex:" + a[i][2]);
        return "";
    }
}